package com.cangchu.db.domain;

import com.cangchu.util.GsonUtil;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 盘点类
 * Created by 张博文 on 2016/10/27.
 */
@Data
@EqualsAndHashCode(callSuper = false)
@NoArgsConstructor
public class Check extends BaseData {

    //盘点号
    private String code;
    //待盘商品批次号
    private List<String> batchList;
    //盘点人
    private String people;
    //盘点日期
    private String date;

    public static void main(String[] args) {
        Check check = new Check();
        check.setCode("0001");
        check.setPeople("张博文");
        check.setDate(new Date().toLocaleString());

        ArrayList<String> list = new ArrayList<>();
        list.add("B0001");
        list.add("B0002");
        list.add("B0003");
        list.add("B0004");
        check.setBatchList(list);


        System.out.println(GsonUtil.toJson(check));

    }

}
